<template>
	<view class="mySetting">
		<view class="center-box">
			<fui-list>
				<fui-list-cell @click="gootooo()">
						<view class="name">
							隐私协议
						</view>
						<view class="right-box">
							<fui-icon name="arrowright" size="35" color="#707070"></fui-icon>
						</view>
				</fui-list-cell>
			</fui-list>
		</view>
		<view class="out-box" @click="outBnt()">
			<view class="bnt-box">
				退出登录
			</view>
		</view>
	</view>
</template>

<script>
	import {
		mapState,
		mapMutations
	} from 'vuex';
	import {
		baseOssUrl
	} from '@/common/settings';
	export default {
		//登录状态
		computed: mapState(['isLogin']),
		data() {
			return {
				userInfo: {},
				baseOssUrl: baseOssUrl
			}
		},
		onLoad() {

		},
		methods: {
			...mapMutations(['login', 'logout']),
			outBnt() {
				uni.navigateTo({
					url:'/pages/login/index'
				})
			},
			gootooo() {
				uni.navigateTo({
					url:'/pages/my/setting/agree/index'
				})
			}
		}
	}
</script>
<style>   page {     background: #EFEFEF;  } </style>
<style lang="scss" scoped>
	.mySetting {
		height: 100%;
		padding: 24rpx 32rpx 32rpx 32rpx;
		.center-box {
			border-radius: 8rpx ;
			background-color: #ffffff;
			.item-box {
				display: flex;
				align-items: center;
				.name {
					font-size: 28rpx;
					color: #1D1D1D;
				}
				.right-box {
					margin-left: auto;
				}
			}
		}
		.out-box {
			margin-top: 90rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			.bnt-box {
				width: 686rpx;
				height: 72rpx;
				background: #35743D;
				border-radius: 50rpx;
				text-align: center;
				line-height: 72rpx;
				font-weight: 500;
				color: #FFFFFF;
			}
		}
	}
</style>
